<?php
namespace App\Util;

class RandomHelper {

    public static function randomNumber($count = 6){
        $number = collect([0,1,2,3,4,5,6,7,8,9]);
        return $number->random($count)->values()->implode('');
    }

    public static function randomString($count = 6){
        $numeric = '0123456789abcdefghijklmnopqrstuvwxyz';
        return substr(str_shuffle($numeric),0,$count);
    }
}